package com.ftg.learn.chapter11;

/**
 * @author kangjx
 * @createTime 2022/7/29
 */
public class Bird {

    private String type;


    public void say(Tree t){
        System.out.println(this.getType() + "在"+t.getType()+"上叫");
    }

    public void fly(Place p){
        System.out.println(this.getType() +"在" + p.getName()+"自.......");
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
